﻿<Window x:Class="HMS.LoginWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:xcpt="clr-namespace:Xceed.Wpf.Themes.Office2007;assembly=Xceed.Wpf.Themes.Office2007.v2.0"
        Title="Login" Height="300" Width="600" 
        WindowStartupLocation="CenterScreen"
        ResizeMode="CanResize" 
        Style="{StaticResource GlassEffectWindowStyle}"      
        Loaded="Window_Loaded">
  
    <Grid >
        <Grid.Background>
            <ImageBrush ImageSource="Images/LoginWindowBackground.png" ></ImageBrush>
        </Grid.Background>
        <Grid.RowDefinitions>
            <RowDefinition Height="75"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="75"/>
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="1" Orientation="Vertical" Margin="0,14,0,0">
            <StackPanel Orientation="Horizontal">
                <Label Content="User Name:" Style="{StaticResource RightAlignedControlLabelStyle}" />
                <TextBox  Focusable="True" Name="UserNameTextBox" Style="{StaticResource LeftAlignedControlTextBoxStyle}"/>
            </StackPanel>
            <StackPanel  Orientation="Horizontal">
                <Label Content="Password:" Style="{StaticResource RightAlignedControlLabelStyle}" />
                <PasswordBox Style="{StaticResource LeftAlignedControlPasswordBoxStyle}" Name="PasswordTextBox"/>
            </StackPanel>
        </StackPanel>
        
        <StackPanel Grid.Row="2" Orientation="Horizontal" Margin="64,0,0,12">
            <Button Name="LoginButton"  Style="{StaticResource LargeButtonStyle}" Click="LoginButton_Click" IsDefault="True">
                <StackPanel Orientation="Horizontal" >
                    <Image Source="images/icons/24x24/right.png" Style="{StaticResource Image24x24Style}" />
                    <TextBlock FontSize="16" Style="{StaticResource ButtonTextControlTextBlockStyle}">Login</TextBlock>
                </StackPanel>
            </Button>
            <Button Name="CloseButton"  Style="{StaticResource LargeButtonStyle}" Click="CloseButton_Click">
                <StackPanel Orientation="Horizontal" >
                    <Image Source="images/icons/24x24/cross.png" Style="{StaticResource Image24x24Style}" />
                    <TextBlock FontSize="16" Style="{StaticResource ButtonTextControlTextBlockStyle}">Close</TextBlock>
                </StackPanel>
            </Button>
        </StackPanel>

    </Grid>
</Window>
